import API_PREFIX from './config'

export default [
  {
    // 用户登录
    url: `${API_PREFIX}/user/login`,
    method: 'post',
    response: (req) => {
      return {
        errcode: 0,
        errmsg: '操作成功',
        sysErrMsg: null,
        result: {
          token: 'tttttttttt',
          user: {
            id: 3,
            account: 'admin',
            username: '测试2',
          },
        },
        dict: null,
        sessionid: 'ee3c56a6-c593-4218-b182-da65b2172d54',
        otherData: null,
      }
    },
  },
  {
    // 用户退出
    url: `${API_PREFIX}/user/logout`,
    method: 'post',
    response: (req) => {
      return {
        errcode: 0,
        errmsg: '操作成功',
        sysErrMsg: null,
        result: '',
        dict: null,
        sessionid: 'ee3c56a6-c593-4218-b182-da65b2172d54',
        otherData: null,
      }
    },
  },
]
